// List of errors which are reported by the models
// Copyright 2005 (C) Ralph Thomas

#ifndef MODEL_ERROR_H
#define MODEL_ERROR_H

namespace model {
	//
	/// All models have a kError attribute, which is an unsigned integer.
	/// It will always be equal to one of these values, which are known
	/// to the internationalization library.
	//
	enum {
		kErrorNone = 0,	///< No error, everything is OK.
		kErrorUnknown,	///< Unknown error occured.
		kErrorNoUrl,	///< The model refers to an invalid URL.
		kErrorNoHostname,///< The model's URL has no hostname!
		kErrorCantAuth,	///< The authentication dialog went wrong.
		kErrorAuthFail,	///< Can't login due to bad user/pass.
		kErrorCantConnect,///< The model can't connect to server.
		kErrorCantTLS,	///< The server didn't support TLS, won't use it
		kErrorNonExistant,///< The model's URL points to nothing.
		kErrorReadOnly	///< Attempted to write to a read-only resource.
	};
};

#endif

